<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title><html:text name="sys.name" /></title>
</head>
<body>
<html:form action="/calendar/calendarEvent/save.crm" id="saveForm">
<html:token/><html:hidden id="calendarEvent.id" name="calendarEvent.id"/>
	<table class="input-table" cellspacing="0" cellpadding="0" border="0"
		align="center">
		<tr>
			<td colspan="4" class="x-panel-header"  style="text-align:center;"><html:text
				name="calendarEvent.action" /></td>
		</tr>
		<html:if test="myMessage!=null">
		<tr>
			<td colspan="4"  style="text-align:center;"><html:property value="myMessage" escape="false"/></td>
		</tr>
		</html:if>
		<tr>
			<td colspan="4"  style="text-align:center;"><input type="button"
				onclick="javascript:saveFunction();" id="saveButton"
				value=" <html:text name="button.save"/> ">&nbsp;<input type="button"
				onclick="javascript:backFunction();" id="backButton"
				value=" <html:text name="button.back"/> "></td>
		</tr>
		<tr>
			<td colspan="4">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
			<tr>
					<td ><html:text name="calendarEvent.userId">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.userId" name="calendarEvent.userId"></html:textfield></td>
					<td ><html:text name="calendarEvent.title">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.title" name="calendarEvent.title"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.modifiedDate"></html:text></td><td class="td-input"><html:date id="birthDay"  name="calendarEvent.modifiedDate" format="yyyy-MM-dd"  /><html:textfield dataType="date"     id="calendarEvent.modifiedDate"   name="calendarEvent.modifiedDate"   value="%{birthDay}" readonly="true"  />&nbsp;<img style="border:0px;"   src="<%=WEBPATH%>/images/calendar.gif"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'calendarEvent.modifiedDate'})"></td>					<td ><html:text name="calendarEvent.description">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.description" name="calendarEvent.description"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.startDate"></html:text></td><td class="td-input"><html:date id="birthDay"  name="calendarEvent.startDate" format="yyyy-MM-dd"  /><html:textfield dataType="date"     id="calendarEvent.startDate"   name="calendarEvent.startDate"   value="%{birthDay}" readonly="true"  />&nbsp;<img style="border:0px;"   src="<%=WEBPATH%>/images/calendar.gif"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'calendarEvent.startDate'})"></td>					<td ><html:text name="calendarEvent.endDate"></html:text></td><td class="td-input"><html:date id="birthDay"  name="calendarEvent.endDate" format="yyyy-MM-dd"  /><html:textfield dataType="date"     id="calendarEvent.endDate"   name="calendarEvent.endDate"   value="%{birthDay}" readonly="true"  />&nbsp;<img style="border:0px;"   src="<%=WEBPATH%>/images/calendar.gif"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'calendarEvent.endDate'})"></td></tr>
<tr>
					<td ><html:text name="calendarEvent.durHour">  </html:text></td>
					<td class="td-input"><html:textfield dataType="int"   id="calendarEvent.durHour" name="calendarEvent.durHour"></html:textfield></td>
					<td ><html:text name="calendarEvent.durMinute">  </html:text></td>
					<td class="td-input"><html:textfield dataType="int"   id="calendarEvent.durMinute" name="calendarEvent.durMinute"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.allDay">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.allDay" name="calendarEvent.allDay"></html:textfield></td>
					<td ><html:text name="calendarEvent.typeId">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.typeId" name="calendarEvent.typeId"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.repeating">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.repeating" name="calendarEvent.repeating"></html:textfield></td>
					<td ><html:text name="calendarEvent.recurrence">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.recurrence" name="calendarEvent.recurrence"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.remindBy">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.remindBy" name="calendarEvent.remindBy"></html:textfield></td>
					<td ><html:text name="calendarEvent.firstReminder">  </html:text></td>
					<td class="td-input"><html:textfield dataType="int"   id="calendarEvent.firstReminder" name="calendarEvent.firstReminder"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.secondReminder">  </html:text></td>
					<td class="td-input"><html:textfield dataType="int"   id="calendarEvent.secondReminder" name="calendarEvent.secondReminder"></html:textfield></td>
					<td ><html:text name="calendarEvent.messageContent">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.messageContent" name="calendarEvent.messageContent"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.shared">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.shared" name="calendarEvent.shared"></html:textfield></td>
					<td ><html:text name="calendarEvent.remindAtOnce">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.remindAtOnce" name="calendarEvent.remindAtOnce"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.remindBySchedule">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.remindBySchedule" name="calendarEvent.remindBySchedule"></html:textfield></td>
					<td ><html:text name="calendarEvent.remindByMessage">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.remindByMessage" name="calendarEvent.remindByMessage"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="calendarEvent.remindBySms">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.remindBySms" name="calendarEvent.remindBySms"></html:textfield></td>
					<td ><html:text name="calendarEvent.doneFlag">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="calendarEvent.doneFlag" name="calendarEvent.doneFlag"></html:textfield></td>

			</table></td>
			<% 
				com.opensymphony.xwork2.util.ValueStack  obj=(com.opensymphony.xwork2.util.ValueStack)request.getAttribute("struts.valueStack");
				obj.setValue("calendarEvent", null); 
			%>
		</tr>
	</table>
	<script type="text/javascript" language="javascript">
		//var provCity = new ProvCity(); 
		//provCity.init('','');
		function saveFunction(){
				_$("saveForm").submit();
		}
		function backFunction(){
			window.location="<%=WEBPATH%>/calendar/calendarEvent/index.crm";
		}
	</script>
</html:form>
</body>
</html>